package com.tianql.feign;

import com.tianql.constant.ApiNameConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name= ApiNameConstant.MY_ACCOUNT,path = "/account")
@Service
public interface AccountFeign {
    @PostMapping("debit")
    public String debit(@RequestParam("userId") String userId, @RequestParam("money") int money);
}
